package flextv.core.event {

import com.adobe.cairngorm.control.CairngormEvent;

import flextv.core.vo.IPlayable;

public class PlayItemEvent extends CairngormEvent {
	
	public static const PLAY_ITEM: String = "playItem";
	
	private var _item: IPlayable;
	
	public function PlayItemEvent(item: IPlayable) {
		super(PLAY_ITEM);
		if(item == null) throw new ArgumentError("item == null");
		_item = item;
	}
	
	public function get item(): IPlayable {
		return _item;
	}
	
	public override function toString(): String {
		return "PlayItemEvent[item="+item+"]";
	}
	
}
}